Practical Domain-Driven Design in Enterprise Java by Vijay Nair
Author:Vijay Nair
Language: eng
Format: epub
ISBN: 9781484245439
Publisher: Apress
1.Application Services classes receive Commands/Queries/Events.
2.As part of the processing, if it requires an interaction with another Bounded Context’s API using REST, it makes use of an Outbound Service.
3.The Outbound service uses a Type safe Rest client to invoke the Bounded Context’s API. It also performs the translation from the data format provided by that Bounded Context’s API to the data model recognized by the current Bounded Context.
Outbound Services: Message Broker
The final type of outbound service that needs to be implemented is the interactions with Message Brokers. Message Brokers provide the necessary physical infrastructure for publishing/subscribing of Domain Events.
We have seen a couple of our Event classes (CargoBooked, CargoRouted) implemented using custom annotations. We have also seen the implementation of publishing them (using the fire() method) as well as subscribing them (using the observes() method).
Let us look at an implementation of how we can enable the publishing and subscribing of these events from a RabbitMQ server’s Queues/Exchanges.
Do note that neither the Eclipse MicroProfile platform nor Helidon MP’s extensions provide capabilities to help CDI Events being published onto RabbitMQ, so we need to provide our own implementation for this. The source code of the chapter provides a separate project (cargo-tracker-rabbimq-adaptor). This project provides the following:Infrastructural capabilities (Connection Factories for RabbitMQ services, Managed Publishers, and Managed Consumers)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Computer Design | Control Systems |
DSPs | Embedded Systems |
Microprocessor Design | PIC Microcontroller |
Linux Device Driver Development Cookbook by Rodolfo Giometti(3939)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3661)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3595)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3429)
TinyML Cookbook by Gian Marco Iodice(3351)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2845)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2610)
Fusion 360 for Makers by Lydia Sloan Cline(2225)
Networking A Beginner's Guide by Bruce Hallberg(2216)
Hands-On Linux for Architects by Denis Salamanca(2056)
But How Do It Know? by J. Clark Scott(2036)
Computers For Seniors For Dummies by Nancy C. Muir(2009)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1961)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1954)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1906)
Hack and HHVM by Owen Yamauchi(1887)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1867)
MicroPython Projects by Jacob Beningo(1746)
Hands-On Internet of Things with MQTT by Tim Pulver(1717)
